//
//  NSString+extention.m
//  lcf-newproject
//
//  Created by yangyang on 14-11-21.
//  Copyright (c) 2014年 yang. All rights reserved.
//

#import "NSString+extention.h"

@implementation NSString (extention)

@end

@implementation NSString (size)

-(CGSize)getSizeWithString:(NSString *)text WithFontSize:(CGFloat)fontSize{
    NSDictionary *attribute = @{NSFontAttributeName: [UIFont systemFontOfSize:fontSize]};
    CGSize size = [text boundingRectWithSize:CGSizeMake(100, 0) options:NSStringDrawingTruncatesLastVisibleLine | NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading attributes:attribute context:nil].size;
    return size;
}

@end